<?xml version="1.0" encoding="UTF-8"?>
<jsp:root version="1.2" xmlns:f="http://java.sun.com/jsf/core" xmlns:h="http://java.sun.com/jsf/html" xmlns:jsp="http://java.sun.com/JSP/Page" xmlns:ui="http://www.sun.com/web/ui">
    <jsp:directive.page contentType="text/html;charset=UTF-8" pageEncoding="UTF-8"/>
    <f:view>
        <ui:page binding="#{listaDisenoSolicitud.page1}" id="page1">
            <ui:html binding="#{listaDisenoSolicitud.html1}" id="html1">
                <ui:head binding="#{listaDisenoSolicitud.head1}" id="head1">
                    <ui:link binding="#{listaDisenoSolicitud.link1}" id="link1" url="/resources/stylesheet.css"/>
                </ui:head>
                <ui:body binding="#{listaDisenoSolicitud.body1}" id="body1" style="-rave-layout: grid">
                    <ui:form binding="#{listaDisenoSolicitud.form1}" id="form1">
                        <ui:table augmentTitle="false" binding="#{listaDisenoSolicitud.table1}" clearSortButton="true" id="table1" lite="true"
                            paginateButton="true" paginationControls="true" sortPanelToggleButton="true"
                            style="left: 48px; top: 192px; position: absolute; width: 384px" title="Diseño de solicitudes" width="384">
                            <script>
                                function initAllRows() {
                                // Disable table actions by default.
                                var table = document.getElementById("form1:table1");
                                table.initAllRows();
                                }
                                function disableActions() {
                                // Disable table actions by default.
                                var table = document.getElementById("form1:table1");
                                var selections = table.getAllSelectedRowsCount();  
                                var disabled = (selections &gt; 0) ? false : true;

                                // Set disabled state for top actions.
                                //document.getElementById("form1:table1:button1").setDisabled(disabled);

                                // Set disabled state for bottom actions.
                                document.getElementById("form1:table1:button2").setDisabled(disabled);
                                }
                                function confirmDeleteSelectedRows() {
                                var table = document.getElementById("form1:table1");
                                return table.confirmDeleteSelectedRows();
                                }
</script>
                            <ui:tableRowGroup binding="#{listaDisenoSolicitud.tableRowGroup1}" id="tableRowGroup1" rows="5"
                                sourceData="#{listaDisenoSolicitud.sct0025DataProvider}" sourceVar="currentRow">
                                <ui:tableColumn binding="#{listaDisenoSolicitud.tableColumn1}" headerText="Codigo" id="tableColumn1" sort="CDGODSNOSLCTUD">
                                    <ui:staticText binding="#{listaDisenoSolicitud.staticText1}" id="staticText1" style="font-size: 10px" text="#{currentRow.value['CDGODSNOSLCTUD']}"/>
                                </ui:tableColumn>
                                <ui:tableColumn binding="#{listaDisenoSolicitud.tableColumn2}" headerText="Tipo de solicitud" id="tableColumn2" sort="DSCRPCIONTPOSLCTUD">
                                    <ui:staticText binding="#{listaDisenoSolicitud.staticText2}" id="staticText2" style="font-size: 10px" text="#{currentRow.value['DSCRPCIONTPOSLCTUD']}"/>
                                </ui:tableColumn>
                                <ui:tableColumn binding="#{listaDisenoSolicitud.tableColumn3}" headerText="Producto" id="tableColumn3" sort="DSCRPCION">
                                    <ui:staticText binding="#{listaDisenoSolicitud.staticText3}" id="staticText3" style="font-size: 10px" text="#{currentRow.value['DSCRPCION']}"/>
                                </ui:tableColumn>
                                <ui:tableColumn binding="#{listaDisenoSolicitud.tableColumn4}" headerText="Sublinea" id="tableColumn4" sort="DSCRPCIONSBLNEA">
                                    <ui:staticText binding="#{listaDisenoSolicitud.staticText4}" id="staticText4" style="font-size: 10px" text="#{currentRow.value['DSCRPCIONSBLNEA']}"/>
                                </ui:tableColumn>
                                <ui:tableColumn binding="#{listaDisenoSolicitud.tableColumn6}" id="tableColumn6">
                                    <ui:button action="#{listaDisenoSolicitud.button4_action}" binding="#{listaDisenoSolicitud.button4}" id="button4"
                                        mini="true" onClick="if (confirm('Esta seguro de borrar este registro?') ==false) return false" primary="true" text="Eliminar"/>
                                </ui:tableColumn>
                            </ui:tableRowGroup>
                            <!-- Actions (Top) -->
                            <f:facet name="actionsTop">
                                <ui:button action="#{listaDisenoSolicitud.button2_action}" binding="#{listaDisenoSolicitud.button2}" disabled="true"
                                    id="button2" onClick="if (confirmDeleteSelectedRows() == false) return false" text="Eliminar"/>
                            </f:facet>
                        </ui:table>
                        <ui:button action="#{listaDisenoSolicitud.button3_action}" binding="#{listaDisenoSolicitud.button3}" id="button3" mini="true"
                            primary="true" style="left: 47px; top: 168px; position: absolute; width: 71px" text="Crear"/>
                        <ui:messageGroup binding="#{listaDisenoSolicitud.messageGroup1}" id="messageGroup1" style="left: 288px; top: 120px; position: absolute"/>
                        <ui:button action="#{listaDisenoSolicitud.button5_action}" binding="#{listaDisenoSolicitud.button5}" id="button5" mini="true"
                            primary="true" style="left: 143px; top: 168px; position: absolute; width: 95px" text="Refrescar"/>
                        <div style="position: absolute; left: 0px; top: 0px">
                            <jsp:include page="encab1.jspf"/>
                        </div>
                        <ui:staticText binding="#{listaDisenoSolicitud.staticText5}" id="staticText5"
                            style="color: rgb(108, 154, 154); font-family: 'Times New Roman','Times',serif; font-size: 18px; left: 48px; top: 120px; position: absolute" text="Lista de diseños de solicitudes"/>
                    </ui:form>
                </ui:body>
            </ui:html>
        </ui:page>
    </f:view>
</jsp:root>
